<ion-view title="编辑信息">
    <ion-nav-buttons side="right">
        <button class="button button-clear" ng-click="doSave()">
            保存
        </button>
    </ion-nav-buttons>
    <ion-content class="crm-content">
        <div class="list">
            <label class="item item-input item-stacked-label crm-edit-label">
                <span class="input-label">酒店名称</span>
                <input type="text" placeholder="" ng-model="hotel.hotelName">
            </label>
            <label class="item item-input item-stacked-label crm-edit-label">
                <span class="input-label">前台电话</span>
                <input type="tel" placeholder="" ng-model="hotel.hotelPhone">
            </label>
            <label class="item item-input item-stacked-label crm-edit-label">
                <span class="input-label">开业日期</span>
                <input type="date" placeholder="" ng-model="hotel.openDate">
            </label>
            <label class="item item-input item-stacked-label crm-edit-label">
                <span class="input-label">装修日期</span>
                <input type="date" placeholder="" ng-model="hotel.decorateDate">
            </label>
            <label class="item item-input item-stacked-label crm-edit-label">
                <span class="input-label">到店时间</span>
                <input type="time" placeholder="" ng-model="hotel.retention_time">
            </label>
            <label class="item item-input item-stacked-label crm-edit-label">
                <span class="input-label">离店时间</span>
                <input type="time" placeholder="" ng-model="hotel.default_leave_time">
            </label>
            <label class="item item-input item-stacked-label crm-edit-label">
                <span class="input-label">酒店介绍</span>
                <textarea rows="4" placeholder="酒店介绍" ng-model="hotel.introduction"></textarea>
            </label>
            <label class="item item-input item-stacked-label crm-edit-label">
                <span class="input-label">备注</span>
                <textarea rows="4" placeholder="备注" ng-model="hotel.remark"></textarea>
            </label>
        </div>
        <ul class="list">
            <li class='item item-icon-right item-thumbnail-right'>
                <img ng-src="{{hotel.def[0].url+'?imageView2/1/w/80'}}" err-src="img/no-img.png" src="img/no-img.png" ng-click="showGallery('def', 1)">
                门头招牌（仅限1张）
                <i class="icon ion-chevron-right icon-accessory"></i>
            </li>
            <li class='item item-icon-right item-thumbnail-right'>
                <img ng-src="{{hotel.lobby[0].url+'?imageView2/1/w/80'}}" err-src="img/no-img.png" src="img/no-img.png"  ng-click="showGallery('lobby', 3)">
                大堂（最多3张）
                <i class="icon ion-chevron-right icon-accessory"></i>
            </li>
            <li class='item item-icon-right item-thumbnail-right'>
                <img ng-src="{{hotel.mainHousing[0].url+'?imageView2/1/w/80'}}" err-src="img/no-img.png" src="img/no-img.png"  ng-click="showGallery('mainHousing', 3)">
                主力房型（最多3张）
                <i class="icon ion-chevron-right icon-accessory"></i>
            </li>
        </ul>
        <ul class="list">
            <li class='item item-icon-right item-thumbnail-right'>
                <img ng-src="{{hotel.businessLicenseFront +'?imageView2/1/w/80'}}" err-src="img/no-img.png" src="img/no-img.png"  ng-click="showGallery(hotel.businessLicenseFront, 1, 'businessLicenseFront')">
                营业执照（仅限1张）
                <i class="icon ion-chevron-right icon-accessory"></i>
            </li>
            <li class='item item-icon-right item-thumbnail-right'>
                <img ng-src="{{hotel.idCardFront +'?imageView2/1/w/80'}}" ng-click="showGallery(hotel.idCardFront, 1, 'idCardFront')" err-src="img/no-img.png" src="img/no-img.png">
                身份证-正面（仅限1张）
                <i class="icon ion-chevron-right icon-accessory"></i>
            </li>
            <li class='item item-icon-right item-thumbnail-right'>
                <img ng-src="{{hotel.idCardBack +'?imageView2/1/w/80'}}" ng-click="showGallery(hotel.idCardBack, 1, 'idCardBack')" err-src="img/no-img.png" src="img/no-img.png">
                身份证-反面（仅限1张）
                <i class="icon ion-chevron-right icon-accessory"></i>
            </li>
        </ul>
    </ion-content>
</ion-view>